home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#49 (Oct 89)
/
DMP Source
/
src
/
AZMakefile
< prev
next >
Wrap
Makefile
|
1989-01-02
|
2KB
|
79 lines
#
# This file is part of the DMP-110 printer driver for the Macintosh
# series of computers.
# Tuesday, December 13, 1988.
#
# Makefile for DMP-110 v1.11.
# This is the Makefile for use with MPW Shell, MPW Make, and Aztec
# C, v. 3.6c.
#
CFLAGS = '+B' '+N' -D_INLINE
target ƒ DMP-110
# We need a copy of your original azc.lib, with crt0 stripped from
# it. We want to use your ORIGINAL azc.lib, to make sure you haven't
# hacked something...
{clib}tools.lib ƒ
echo "{clib}tools.lib does not exist, building it."
duplicate -y `getfilename -m "Please find original azc.lib." -t CLIB`∂
{clib}tools.lib
lb {clib}tools.lib -d crt0
.o ƒ .c
cc {CFLAGS} {default}.c -o {default}.asm '+Iazheaders.dmp' -A
as {default}.asm -ZAP
PDriverhdr.o ƒ AZGlue.asm
as -Edriver AZGlue.asm -o PDriverhdr.o
packhdr.o ƒ AZGlue.asm
as -Epack AZGlue.asm -o packhdr.o
printhdr.o ƒ AZGlue.asm
as -Eprint AZGlue.asm -o printhdr.o
dialoghdr.o ƒ AZGlue.asm
as -Edialog AZGlue.asm -o dialoghdr.o
DMP-110 ƒƒ azheaders.dmp PACK PDEF0 PDEF4 PDriver DMP-110.rsrc azfinal.r
rgen azfinal.r
SetFile DMP-110 -a B
azheaders.dmp ƒƒ azheaders.c dmp-110.h
cc {CFLAGS} azheaders.c '+Hazheaders.dmp' -A
delete -i azheaders.asm
DMP-110.rsrc ƒƒ DMP-110.rsrc.r makefile
rez -o DMP-110.rsrc -t 'rsrc' -c RSED DMP-110.rsrc.r
PACK ƒƒ packhdr.o pack.o {clib}tools.lib
ln packhdr.o pack.o '+yni' PACK "Chooser Device" -4096 -o PACK -ltools
setfile PACK -t rsrc -c RSED
PDriver ƒƒ pdriverhdr.o PDriver.o {clib}tools.lib
ln pdriverhdr.o PDriver.o '+yni' DRVR ".XPrint" -8192 -o PDriver -ltools
setfile PDriver -t rsrc -c RSED
PDEF0 ƒƒ printhdr.o PDEF0.o {clib}tools.lib
#
# The following subterfuge is necessary because the Aztec linker will not
# create non-'CODE' resources with ID #0. (?)
#
ln printhdr.o PDEF0.o -ltools -o PDEF0
PDEF4 ƒƒ dialoghdr.o PDEF4.o {clib}tools.lib
ln dialoghdr.o PDEF4.o '+yni' PDEF "Dialogs" 4 -o PDEF4 -ltools
setfile PDEF4 -t rsrc -c RSED
install ƒ DMP-110
duplicate -y DMP-110 "{systemfolder}DMP-110"
clean ƒ
delete -i ∂
`files -t COBJ;files -t rsrc;files -t PRER` ∂
PACK PDEF0 PDEF4 PDriver azheaders.dmp
PDEF0.o ƒ DMP-110.h
PDEF4.o ƒ DMP-110.h
PDriver.o ƒ DMP-110.h
pack.o ƒ DMP-110.h